Skip to content

Conversation

vg04112001
Copy link

correction in message inside validator and response message inside controller

Copy link
Contributor

@TejasSurse TejasSurse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Improvements

The original code has an issue with string concatenation logic. The condition should be evaluated correctly within the string interpolation.
Improvement: The use of string interpolation directly inside the template literal ensures clarity and correctness.

200,
todo,
"Todo marked " + todo.isComplete ? "done" : "undone"
"Todo marked " + `${todo.isComplete ? "done" : "undone"}`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The original code has an issue with string concatenation logic. The condition should be evaluated correctly within the string interpolation.
Improvement: The use of string interpolation directly inside the template literal ensures clarity and correctness.

updateTodoValidator,
getAllTodosQueryValidators,
};
export { createTodoValidator, updateTodoValidator, getAllTodosQueryValidators };
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's keep the formatting as is for unchanged lines.

@wajeshubham
Copy link
Collaborator

Kindly go through requested changes. Also, resolve conflicts. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants